package com.pi;

import java.io.File;

public class PatchFile extends File {

    // 1 == 新增  , 2 为修改
    private int fileStatus;

    public PatchFile(String path) {
        super(path);
        this.fileStatus = 0;
    }

    public PatchFile(String path, int fileStatus) {
        super(path);
        this.fileStatus = fileStatus;
    }

    public int getFileStatus() {
        return this.fileStatus;
    }

    public void setFileStatus(int fileStatus) {
        this.fileStatus = fileStatus;
    }

    public String toString() {
        return "\r\npath = " + getAbsolutePath()
                + "  || fileStatus = " + this.fileStatus;
    }
}

